package com.fduss.artStore.dao;

import com.fduss.artStore.entity.Artwork;

import java.util.List;

/**
 * @Author duocai wu
 * @Date 2017/6/24
 * @Time 21:02
 */
public interface ArtworkDao {
    Artwork add(Artwork artwork);
    void delete(int artworkId);
    Artwork getOne(int artworkId);
    Artwork update(Artwork artwork);
    int getCount();
    List<Artwork> getByGallery(int galleryId);
    List<Artwork> getAll();
    List<Artwork> getByArtist(int artistID);
    List<Artwork> getOnePage(int pageIndex, int pageSize);
    List<Artwork> getByDecriptionContainingOrTitleContaining(String key1, String key2);
}
